import TianDingDoctorComponent from '../../modules/doctor'
import TianDingDoctorMeComponent from '../../modules/doctor/me'
import TianDingDoctorMeSettingComponent from '../../modules/doctor/me/setting'
import TianDingDoctorMeBaseInfoComponent from '../../modules/doctor/me/baseInfo'
import TianDingDoctorMeAppointmentItemComponent from '../../modules/doctor/me/appointmentItem'
import TianDingDoctorMeAppointmentTimeComponent from '../../modules/doctor/me/appointmentTime'
import TianDingDoctorMeAppointmentItemEditComponent from '../../modules/doctor/me/appointmentItem/edit.vue'
import TianDingDoctorMeAppointmentTimeEditComponent from '../../modules/doctor/me/appointmentTime/edit.vue'
import TianDingDoctorMeAppointmentRecordComponent from '../../modules/doctor/me/appointmentRecord'
import TianDingDoctorMeModifyPasswordComponent from '../../modules/doctor/me/modifyPassword'

import TianDingDoctorInfoComponent from '../../modules/doctor/info.vue'
import TianDingDoctorForumComponent from '../../modules/doctor/forum'
import TianDingDoctorHomeComponent from '../../modules/doctor/home'

const DoctorRouter = [{
  path: "/tdDoctor",
  name: "tdDoctor",
  component: TianDingDoctorComponent,
  meta: {
    title: "医师端"
  },
  redirect: {
    name: 'tdDoctorMe'
  },
  children: [{
      path: '',
      name: '',
      component: TianDingDoctorMeComponent,
      meta: {
        title: "我的"
      }
    }, {
      path: 'tdDoctorMe',
      name: 'tdDoctorMe',
      component: TianDingDoctorMeComponent,
      meta: {
        title: "我的"
      }
    },
    {
      path: 'tdDoctorMeSetting',
      name: 'tdDoctorMeSetting',
      component: TianDingDoctorMeSettingComponent,
      meta: {
        title: '设置'
      }
    },
    {
      path: 'tdDoctorMeBaseInfo',
      name: 'tdDoctorMeBaseInfo',
      component: TianDingDoctorMeBaseInfoComponent,
      meta: {
        title: "认证信息"
      }
    },
    {
      path: 'tdDoctorMeAppointmentItem',
      name: 'tdDoctorMeAppointmentItem',
      component: TianDingDoctorMeAppointmentItemComponent,
      meta: {
        title: "预约项目设置"
      }
    },
    {
      path: 'tdDoctorMeAppointmentItemEdit',
      name: 'tdDoctorMeAppointmentItemEdit',
      component: TianDingDoctorMeAppointmentItemEditComponent,
      meta: {
        title: "编辑预约项目设置"
      }
    },
    {
      path: 'tdDoctorMeAppointmentTime',
      name: 'tdDoctorMeAppointmentTime',
      component: TianDingDoctorMeAppointmentTimeComponent,
      meta: {
        title: "预约时间设置"
      }
    },
    {
      path: 'tdDoctorMeAppointmentTimeEdit',
      name: 'tdDoctorMeAppointmentTimeEdit',
      component: TianDingDoctorMeAppointmentTimeEditComponent,
      meta: {
        title: "编辑预约时间设置"
      }
    },
    {
      path: 'tdDoctorMeAppointmentRecord',
      name: 'tdDoctorMeAppointmentRecord',
      component: TianDingDoctorMeAppointmentRecordComponent,
      meta: {
        title: "被预约记录"
      }
    },
    {
      path: 'tdDoctorInfo',
      name: 'tdDoctorInfo',
      component: TianDingDoctorInfoComponent,
      meta: {
        title: "审核"
      }
    },
    {
      path: 'tdDoctorMeModifyPassword',
      name: 'tdDoctorMeModifyPassword',
      component: TianDingDoctorMeModifyPasswordComponent,
      meta: {
        title: "修改密码"
      }
    },
    {
      path: 'tdDoctorForum',
      name: 'tdDoctorForum',
      component: TianDingDoctorForumComponent,
      meta: {
        title: '论坛'
      }
    }, {
      path: 'tdDoctorHome',
      name: 'tdDoctorHome',
      component: TianDingDoctorHomeComponent,
      meta: {
        title: '首页'
      }
    }
  ]
}];


export default DoctorRouter;
